<include file="Layout/header" />

<body>
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
        try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) {}
        </script>
        <ul class="breadcrumb">
            <li> <i class="icon-home home-icon"></i> <a href="{:U('Admin/Index/welcome')}">首页</a> </li>
            <li class="active">工资设置</li>
        </ul>
    </div>
    <div class="page-content">
        <div class="page-header">
            <h1> 代理管理 <small> <i class="icon-double-angle-right"></i> 工资设置 </small> </h1>
        </div>
        <div class="">
            <div class="tabbable">
                <div class="tab-content">
                    <div class="table-responsive dataTables_wrapper">
                        <!-- <include file="Layout/{$tpl}" />-->
                        <form class="form-horizontal" action="{:U('Admin/Agent/change_salary')}" id="validation-form" method="post" enctype="multipart/form-data">
                            <input type="hidden" value="{$c_id}" name="c_id">
                            <input type="hidden" value="{$pan}" name="pan">
                            <table id="sample-table-1" class="table table-center table-striped table-bordered table-hover dataTable">
                                <thead>
                                    <tr>
                                        <th style="width: 100px">选项</th>
                                        <th>单日销量（单位：万）</th>
                                        <th>工资比例(%)</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <foreach name="sale" item="vo">
                                        <tr>
                                            <td>工资参数</td>
                                            <td>
                                                <input type="text" value="{$vo.sales}" name="sales[]">
                                            </td>
                                            <td>
                                                <div class="wan-spinner wan-spinner-1"><a href="javascript:void(0)" class="minus">-</a>
                                                    <input type="text" value="{$vo.percentage}" name="percentage[]"><a href="javascript:void(0)" class="plus">+</a></div>
                                            </td>
                                        </tr>
                                    </foreach>
                                </tbody>
                            </table>
                            <div class="row" style="background: #edeeef;padding: 10px;">
                                <div style="text-align: center;">
                                    <button type="submit" class="btn btn-info">确认修改</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- /.table-responsive -->
                </div>
            </div>
        </div>
        <!-- /.table-responsive -->
    </div>
    </div>
    </div>
    <include file="Layout/js" />
    <script src="__ADMIN_JS__/bootbox.js"></script>
    <link rel="stylesheet" href="__ADMIN_JS__/wan-spinner/wan-spinner.css" />
    <script src="__ADMIN_JS__/wan-spinner/wan-spinner.js"></script>
    <script type="text/javascript">
    $(function() {
        $(".wan-spinner-1").WanSpinner({ minValue: 0, maxValue: 49, step: 0.1 });
    })
    </script>
</body>

</html>